1.20: finalize python change notes#1127
Merged
markshannon merged 3 commits intoMar 19, 2019
Merged
Conversation
taus-semmle
reviewed
Mar 18, 2019
| Removes false positives seen when using Python 3.6, but not when using earlier versions. | ||
| The API has been improved to declutter the global namespace and improve discoverability and readability. | ||
| * New predicates `ModuleObject::named(name)` and `ModuleObject.attr(name)` have been added, allowing more readable access to common objects. For example, `(any ModuleObject m | m.getName() = "sys").getAttribute("exit")` can be replaced with `ModuleObject::named("sys").attr("exit")` | ||
| * The API for accessing builtin functions has been improved. Predicates of the form `theXXXFunction()`, such as `theLenFunction()`, have been deprecated in favour of `Object::builtin(name)`. |
Contributor
There was a problem hiding this comment.
Should this be US English favor instead?
Contributor
Author
There was a problem hiding this comment.
Thanks @taus-semmle - I missed that entirely...
Contributor
Author
|
@markshannon - is this ready to merge or is there anything you want me to update? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request is intended to finalize the change notes for Python 1.20. Much of the change is to bring information from the bottom of the page into the "General improvements" section at the top.
After discussion with Mark, I've reworded one section. I hope that I've avoided changing the meaning or introducing any errors.
@markshannon or @taus-semmle - do you have time to review these changes?
@jf205 - mostly for information.